package com.anyisn.anyflickr.modules.PhotoInfo.controller
{
	import com.adobe.webapis.flickr.Photo;
	
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import com.anyisn.anyflickr.modules.PhotoInfo.model.PhotoProxy;
	
	public class PhotosGetSizesCommand extends SimpleCommand
	{
		override public function execute(notification:INotification) : void {
			var photoP:PhotoProxy = facade.retrieveProxy(PhotoProxy.NAME) as PhotoProxy;
			var photo:Photo = notification.getBody() as Photo;
			photoP.getSizes(photo.id);
		}
	}
}